<?php
/**
 * View auth_menu - Registro (Phalconphp)
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    4-ago-2015
 * @package    Registro__Phalconphp_
 * @copyright  Copyright (c) 2015  Luigi Pastore
 */
?>

<ul class="nav navbar-nav navbar-right">
    {%- if not(auth.getIdentity() is empty) %}
    <li id="menu" class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ auth.getName() }} <span class="caret"></span></a>
        <ul class="dropdown-menu" role="menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li class="divider"></li>
            <li>{{ link_to('auth/logout', t._('logout')) }}</li>
        </ul>
        <!--    <li>{{ link_to('users', 'Users Panel') }}</li>
            <li>{{ link_to('auth/end', 'Logout') }}</li>-->
    </li>
    {% else %}
    <li>{{ link_to('auth/login', t._('login')) }}</li>
    {% endif %}
</ul>